home *** CD-ROM | disk | FTP | other *** search
- Subject: ClearPartStorage
- Sent: 7/24/96 8:56 AM
- Received: 7/24/96 9:10 AM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- This message was returned to me with an error. I am resending it.
-
- ------------------------------------------------------------------
-
- As I think Arni noted, the ODF practice of removing the part's prefered
- kind and then letting the part externalize is causing severe document
- bloat. Bento is not reclaiming the space very well.
-
- My own results... With 6 ODF based Rapid-I Button parts (with picture
- labels and script actions) embedded in ODF Container, I can account for
- about 200K of needed storage. After making a single change to the
- document,
- it bloats out to > 400K. Doing a "Save a Copy..." reduces the document
- size
- down to just over 200K.
-
- I think what's happening here is that if a silly little change is made to
- an inconsequential little part, each part has to externalize itself. Thus,
- each ODF part clobbers its old contents property, and Bento lets the
- document size double.
-
- A good solution might be an "fPartChanged" flag in FW_CPart, set when
- FW_CPart::Changed is called. Right now, that method just flags the
- document
- as dirty. If a part is unchanged, then it has no work to do at
- externalization time.
-
- Now, for those of us caching data in frames, it would also be useful to
- have a changed flag just for each FW_CFrame, so that we don't have to
- externalize cache data for a frame that hasn't changed.
-
- This whole solution would also cut down on externalization time of ODF
- parts. With lots of parts in a document, the time savings could be
- significant.
-
- So, does this make any sense?
-
- Brad
-
- <mailto: "Brad Hutchings" brad@hutchings-software.com>
- <http://www.hutchings-software.com>
-
- Got OpenDoc? Got Cyberdog? Then beta-test Rapid-I Button! Email me for
- more
- information...
-
-
- ........................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- ........................................................................
-
-
-